#ifndef MOTION_PAGE_H
#define MOTION_PAGE_H

#include <QWidget>

class motion_page : public QWidget
{
    Q_OBJECT

public:
    motion_page(QWidget *parent);
    ~motion_page();

protected:
    void showEvent(QShowEvent * event);
    void paintEvent(QPaintEvent * event);
    void keyPressEvent(QKeyEvent * event);

private:
    QTimer* page_timer_;
    QLabel* lblBackground;
    QPointer<QMovie> bg_image_;
    std::pair<QString, QPixmap> current;
    int motion_flag_ = 0;
    int lucky_index_ = 0;
    int lucky_dog_ = 0;
};

#endif // MOTION_PAGE_H
